import { defineStore } from "pinia";

export const userStoreage = defineStore("active", {
    state: (): {
        activeString: string;
    } => ({
        activeString: null,
    }),
    persist: true,
    getters: {
        getUserOpenId: (state) => state.activeString,
    },
    actions: {
        setUserOpenId(activeString: any) {
            this.activeString = activeString;
        },
    },
});
